package com.example.exercise.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.exercise.model.AttendanceRecord;
import com.example.exercise.model.Vacate;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;

@Mapper
public interface CheckMapper extends BaseMapper {

    //更新签退
    int update(AttendanceRecord attendanceRecord);

   // 找到考勤记录
    AttendanceRecord findByEmployeeIdAndDate(String employeeId, LocalDate LocalDate);

    //签到成功插入考勤记录
    void insert(AttendanceRecord attendanceRecord);

    //插入请假申请
    void insertVacate(Vacate vacate);

    //找到通过请求id找到请求记录
    Vacate findVacateId(String leaveId);

    //更新状态是否同意
    void updateVate(Vacate vacate);
}
